/* Reset & 기본 설정 */
* {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  user-select: none;
}

body {
  background: #f0f2f5;
  color: #222;
  max-width: 480px;
  margin: 40px auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: flex-start;
  gap: 20px;
}

/* 제목 */
h1 {
  font-weight: 800;
  font-size: 2.5rem;
  color: #3b82f6;
  text-align: center;
  margin-bottom: 30px;
}

/* 질문 텍스트 */
#question-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.3;
}

/* 선택지 버튼 */
#choices {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 0 15px;
}

#choices button {
  padding: 14px 0;
  font-size: 1.2rem;
  font-weight: 600;
  background: white;
  border: 2.5px solid #3b82f6;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #3b82f6;
  box-shadow: 0 3px 6px rgb(59 130 246 / 0.2);
}

#choices button:hover {
  background: #3b82f6;
  color: white;
  box-shadow: 0 5px 10px rgb(59 130 246 / 0.4);
  transform: translateY(-3px);
}

/* 시작 버튼 */
#startBtn {
  margin: 0 auto 40px auto;
  padding: 16px 48px;
  font-size: 1.4rem;
  font-weight: 700;
  background: #3b82f6;
  border-radius: 16px;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 10px rgb(59 130 246 / 0.3);
  transition: background-color 0.3s ease;
}

#startBtn:hover {
  background-color: #2563eb;
  box-shadow: 0 8px 15px rgb(37 99 235 / 0.6);
}

/* 결과 타이틀 */
#result-title {
  font-weight: 900;
  font-size: 2.4rem;
  text-align: center;
  color: #2563eb;
  margin-bottom: 20px;
}

/* 결과 설명 */
#result-description {
  font-size: 1.25rem;
  text-align: center;
  color: #444;
  line-height: 1.5;
  padding: 0 15px;
  margin-bottom: 40px;
}

/* 다시하기 버튼 */
#backBtn {
  display: block;
  width: 180px;
  margin: 0 auto;
  padding: 14px 0;
  font-weight: 700;
  font-size: 1.2rem;
  background: #3b82f6;
  border-radius: 14px;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 12px rgb(59 130 246 / 0.3);
  transition: background-color 0.3s ease;
}

#backBtn:hover {
  background-color: #1e40af;
  box-shadow: 0 8px 18px rgb(30 64 175 / 0.5);
}

/* 반응형 */
@media (max-width: 480px) {
  body {
    margin: 30px 15px;
    padding: 10px;
  }

  #choices button {
    font-size: 1.1rem;
    padding: 12px 0;
  }

  #startBtn, #backBtn {
    width: 100%;
    font-size: 1.3rem;
  }
}

#backToLobbyBtn {
  position: fixed;
  top: 12px;
  left: 12px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 7px rgba(59,130,246,0.6);
  transition: background-color 0.3s ease;
  z-index: 9999;
}

#backToLobbyBtn:hover {
  background-color: #2563eb;
}
