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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(180deg, #E8F5E9 0%, #F5F1E8 100%);
  min-height: 100vh;
  color: #2C3E50;
}

/* ============ LOGIN SCREEN ============ */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.robato-img-large {
  width: 180px;
  height: auto;
  margin-bottom: 15px;
  filter: drop-shadow(0 8px 20px rgba(168, 213, 186, 0.4));
}

.login-header h1 {
  font-size: 36px;
  color: #2C3E50;
  margin-bottom: 5px;
}

.subtitle {
  color: #A8D5BA;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
}

.login-box {
  background: white;
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 340px;
}

.login-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: #2C3E50;
}

.login-box select {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: 2px solid #E8F5E9;
  border-radius: 12px;
  background: #F8FBF9;
  margin-bottom: 15px;
  cursor: pointer;
}

.login-box select:focus {
  outline: none;
  border-color: #A8D5BA;
}

.login-box button {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  color: white;
  background: #A8D5BA;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.login-box button:hover {
  background: #8FC4A4;
  transform: translateY(-2px);
}

.footer-note {
  margin-top: 30px;
  color: #95A5A6;
  font-size: 13px;
}

/* ============ MAIN APP ============ */
.app-container {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: #F5F1E8;
  padding-bottom: 80px;
  position: relative;
}

.top-bar {
  background: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-name {
  font-weight: 700;
  font-size: 15px;
}

.team-badge {
  font-size: 12px;
  color: #A8D5BA;
  font-weight: 600;
}

.notes-balance {
  background: #FFF5E6;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 16px;
  color: #F5B7A1;
}

.robato-section {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(180deg, #E8F5E9 0%, #F5F1E8 100%);
}

.robato-img {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 6px 15px rgba(168, 213, 186, 0.3));
  animation: float 3s ease-in-out infinite;
}

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

.greeting {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
}

.missions-section {
  padding: 20px;
}

.missions-section h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

.mission-card {
  background: white;
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s;
  cursor: pointer;
}

.mission-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.mission-card.quiz {
  background: linear-gradient(135deg, #FFF5E6, #FFFFFF);
}

.mission-card.secret {
  background: linear-gradient(135deg, #E8F5E9, #FFFFFF);
  border: 2px dashed #A8D5BA;
}

.mission-icon {
  font-size: 32px;
}

.mission-info {
  flex: 1;
}

.mission-info h3 {
  font-size: 15px;
  margin-bottom: 3px;
}

.mission-info p {
  font-size: 13px;
  color: #7F8C8D;
}

.mission-reward {
  background: #F5B7A1;
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  background: white;
  padding: 10px;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-btn {
  background: none;
  border: none;
  font-size: 12px;
  padding: 6px 8px;
  cursor: pointer;
  color: #95A5A6;
  font-weight: 600;
}

.nav-btn.active {
  color: #A8D5BA;
}

/* ============ MISSION DETAIL PAGE ============ */
.back-btn {
  background: #F5F1E8;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  color: #2C3E50;
}

.mission-detail {
  padding: 30px 20px;
  text-align: center;
}

.mission-big-icon {
  font-size: 80px;
  margin-bottom: 15px;
}

.mission-detail h1 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #2C3E50;
}

.mission-desc {
  font-size: 16px;
  color: #7F8C8D;
  margin-bottom: 25px;
  line-height: 1.5;
}

.task-box {
  background: white;
  padding: 20px;
  border-radius: 16px;
  text-align: left;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.task-box h3 {
  color: #A8D5BA;
  margin-bottom: 10px;
  font-size: 16px;
}

.task-box p {
  color: #2C3E50;
  line-height: 1.5;
}

.reward-box {
  background: #FFF5E6;
  padding: 16px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.reward-label {
  font-weight: 600;
  color: #2C3E50;
}

.reward-amount {
  font-weight: 700;
  font-size: 20px;
  color: #F5B7A1;
}

.complete-btn {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  font-weight: 700;
  color: white;
  background: #A8D5BA;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.complete-btn:hover {
  background: #8FC4A4;
  transform: translateY(-2px);
}

.completed-message {
  background: #E8F5E9;
  padding: 20px;
  border-radius: 16px;
  color: #2C3E50;
  font-weight: 700;
  font-size: 16px;
}

.mission-card.completed {
  opacity: 0.5;
  background: #F0F0F0;
}

.mission-card.completed .mission-icon {
  filter: grayscale(50%);
}

/* ============ QUIZ PAGE ============ */
.quiz-detail {
  padding: 30px 20px;
  text-align: center;
}

.quiz-icon {
  font-size: 70px;
  margin-bottom: 15px;
}

.quiz-detail h1 {
  font-size: 26px;
  margin-bottom: 25px;
  color: #2C3E50;
}

.question-box {
  background: white;
  padding: 25px 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.question-text {
  font-size: 17px;
  line-height: 1.6;
  color: #2C3E50;
  font-weight: 600;
}

/* 4지선다 옵션 */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.option-btn {
  background: white;
  border: 2px solid #E8F5E9;
  padding: 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #2C3E50;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.option-btn:hover {
  border-color: #A8D5BA;
  background: #F8FBF9;
}

.option-btn.selected {
  background: #A8D5BA;
  color: white;
  border-color: #A8D5BA;
  transform: scale(1.02);
}

/* 주관식 입력 */
.answer-input {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border: 2px solid #E8F5E9;
  border-radius: 14px;
  background: white;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.answer-input:focus {
  outline: none;
  border-color: #A8D5BA;
}

/* 제출 버튼 */
.submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  font-weight: 700;
  color: white;
  background: #A8D5BA;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 15px;
}

.submit-btn:hover {
  background: #8FC4A4;
  transform: translateY(-2px);
}

/* 피드백 메시지 */
.feedback-message {
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 15px;
  display: none;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.feedback-message.success {
  background: #E8F5E9;
  color: #27AE60;
}

.feedback-message.error {
  background: #FFEBEE;
  color: #E74C3C;
}

.feedback-message.warning {
  background: #FFF5E6;
  color: #F39C12;
}

/* ============ CODE INPUT AREA ============ */
.code-input-area {
  background: white;
  padding: 24px 20px;
  border-radius: 16px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 2px dashed #A8D5BA;
}

.code-label {
  color: #2C3E50;
  margin-bottom: 8px;
  font-size: 17px;
  text-align: center;
}

.code-hint {
  color: #7F8C8D;
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.4;
}

.code-input {
  width: 100%;
  padding: 16px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
  border: 2px solid #E8F5E9;
  border-radius: 14px;
  background: #F8FBF9;
  margin-bottom: 15px;
  box-sizing: border-box;
  color: #2C3E50;
}

.code-input:focus {
  outline: none;
  border-color: #A8D5BA;
  background: white;
}

.code-input::placeholder {
  font-weight: 400;
  letter-spacing: 1px;
  color: #BDC3C7;
}
